package com.then.libary.util;

import org.json.JSONException;
import org.json.JSONObject;

import com.then.libary.bean.User;

public class UserJsonUtil {

	public static void getUserMessage(String json,User user) throws JSONException
	{
		JSONObject jsonObject = new JSONObject(json);
		String head_portrait = jsonObject.getString("avatar");
		user.setHead_portrait(head_portrait );
		user.setMobileS(jsonObject.getString("mobile"));
		user.setFeeling(jsonObject.getString("feeling"));
		user.setQq(jsonObject.getString("qq"));
		user.setRealName(jsonObject.getString("realname"));
		
	}
}
